package com.springboot.cloud.auth.authentication.provider;

import com.springboot.cloud.common.core.entity.vo.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

@FeignClient(name = "organization",fallback = UserProviderFallBack.class)
public interface UserProvider {

    @GetMapping("/user/usernames/{roleId}")
    Result<List<String>> getUserNamesByRoleId(@PathVariable("roleId") String roleId);
}
